package com.tiancheng.onecode.convert;

import com.tiancheng.onecode.entity.Platform;
import com.tiancheng.onecode.model.request.admin.PlatformAddReq;
import com.tiancheng.onecode.model.request.admin.PlatformUpdateReq;
import com.tiancheng.onecode.model.response.admin.PlatformQueryRes;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 订单信息转换
 * @Date: create in 2024/11/28 15:46
 */
@Mapper(componentModel = "spring")
public interface PlatformConvert {
    PlatformConvert INSTANCE = Mappers.getMapper(PlatformConvert.class);

    PlatformQueryRes convert2PlatformQueryRes(Platform platform);

    List<PlatformQueryRes> convert2PlatformQueryResList(List<Platform> platform);

    Platform convert2Platform(PlatformAddReq params);
    Platform convert2Platform(PlatformUpdateReq params);

}
